package com.example.api.mapper;

import com.example.api.model.entity.Driver;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import java.util.List;

@Mapper
public interface DriverMapper {

    void insert(Driver driver);

    void update(Driver driver);

    void deleteById(@Param("id") String id);

    Driver findById(@Param("id") String id);

    List<Driver> findAll();

    void updateDriving(@Param("driving") boolean driving, @Param("id") String id);

    boolean isDriving(@Param("id") String id);

    List<Driver> findByNameLike (@Param("name") String name);


}
